package top.jsjkxyjs.blackbox.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import top.jsjkxyjs.blackbox.entity.Devbind;

import java.util.List;

public interface DevBindMapper extends BaseMapper<Devbind> {
	int addIotToUser(Devbind devbind, int userId);

	List<Devbind> getUserAllDevByCarId(int carId);

	int countUsersAllIots(int userId);

	List<Devbind> getUserDevs(int userId);

	Devbind getUserByIot(int devId);
}
